<?php
/**
* Config file
*
* @copyright inovia
*/

//the timestamp of the start of the site
$configWorldInitTimeStamp    = 1140991550;
//bool var for Controllers
$configDebugController        = true;
$configLogType               = "file";
$configLogFileName           = "/tmp/logs.txt";

//To edit, the default page
$configControllerDefaultPath  = "controls/";
$configControllerDefault      = "home";

//bool var for ModelClasses
$configDebugModel       = false;
$configDebugXSLT        = false;
//bool var for Error logging
$configLogError         = false;

//bool var for Maintenance state
$configMaintenance = "0";

//path to explain database query path
$configLogDataBaseFile       = "logs/database_explain_sql.html";
//bool for explain queries
$configDataBaseExplainAll = false;

/* config of the DB : these are the fields to edit */
$configDBchoice		 = "mySQL";            // cavailable : MySQL, MySQLI
$configDBhost        = "localhost";
$configDBport        = "3306";
$configDBdatabase    = "dinaus";
$configDBusername    = "dinaus";
$configDBpassword    = "dinaus";


$lastClientTime=1174419097;
/* time limit for the session, default : 1hour*/
$configCookieLimit = 3600;
/* name of the session default : oolime*/
$configCookieName = 'dinaus';

/* config of the cache   */
$configCacheFolder = 'cache/';

/* user groups available */
$configGroups     = Array(" ","manager");//endArray

/*reg exp to check the type of the request fields*/
$configAssocTypes = Array(
"int" => "^(-[1-9][[:digit:]]*|[[:digit:]]*)$",
"unsigned int" => "^([[:digit:]]*)$",
"string" => "^(.+)$",
"char" => "^(.)$",
"url" => "^[a-z0-9]([-._]{0,1}[a-z0-9])*.[a-z0-9]{2,6}(/([-+._?!;,=&~#%]{0,1}[a-z0-9]{0,1})*)*$",
"email" => "^([a-z0-9]([-._]{0,1}[a-z0-9])*@[a-z0-9]([-._]{0,1}[a-z0-9])*.[a-z]{2,6}|(http://|https://)[a-z0-9]([-._]{0,1}[a-z0-9])*.[a-z0-9]{2,6}(/[a-z0-9]([-+._?!@;,=&~#%]{0,1}[a-z0-9]{0,1})*)*)$",
"phone" => "^[-+.()0-9 ]+$",
"zipcode" => "^[a-z0-9 ]+$",
"pseudo" =>  "^[a-zA-Z0-9]{1,32}$"
);//endArray

?>
